import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"

// 指令用量明细
export const InstructionUsageDetails = () => {
    return service.get<any,any>(`/produce/QueryOfInstructionUsageDetails2/2`)
}

// 领料明细档查询
export const QueryOfMaterialRequisitionDetailsFile = (parms:any) => {
    return service.post<any,any>(`/produce/MaterialRequisitionDetailsFile/2`,parms)
}

// 选择材料查询
export const SelectMaterialQuery = (parms:any) => {
    return service.post<any,any>(`/produce/SelectSupplementaryOrderMaterials`,parms)
}

// 待领料批处理
export const ToBeProcessedTnBatchesForMaterialRequisition = (parms:any) => {
    return LoginWork.post<any,any>(`/produce/PendingBatchProcessing/2`,parms)
}

// 领料批处理
export const BatchProcessingOfMaterialRequisition = (parms:any) => {
    return LoginWork.post<any,any>('/produce/BatchProcessingOfMaterialRequisition/2',parms)
}

// 部位用量明细查询
export const partNameQuery = (parms:any) => {
    return service.post<any,any>('/produce/partNameList',parms)
}

// 补单领料打印
export const printList = (parms:any) => {
    return LoginWork.put<any,any>(`/produce/PrintDocuments`,parms)
}